<template>
	<view class="content">
        <van-button type="primary" @click="toAdd">收礼</van-button>
        <van-button type="danger">统计</van-button>
		<view @click="onExport">dd </view>
	</view>
</template>

<script>
import exportExcel from '../../export';
import storage from '../../storage';
	export default {
		data() {
			return {
				title: 'Hello'
			}
		},
		onLoad() {

		},
		methods: {
			toAdd() {
				uni.navigateTo({
					url: '/pages/add/index'
				})
			},
			onExport() {
				let data = Array.from({length:1000}).map((_,i)=>{
					return {
						name: 'name'+i,
						money:100+i,
						note: 'note'+i
					}
				})
				exportExcel(data)
			}
		}
	}
</script>

<style>
	.content {
		height: 100%;
		display: flex;
		align-items: center;
		justify-content: center;
	}
</style>
